package com.framework.disconf.property;

import com.baidu.disconf.client.common.annotations.DisconfFile;
import com.baidu.disconf.client.common.annotations.DisconfFileItem;

@DisconfFile(filename = "application.properties")
public class ApplicationProperty {
    private String url;
    private String username;
    private String password;
    private String driverClassName;

    private String slaveUrl;
    private String slaveUsername;
    private String slavePassword;
    private String slaveDriverClassName;

    private String zkHost;
    private String cron;

    @DisconfFileItem(name = "spring.datasource.master.jdbc-url")
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @DisconfFileItem(name = "spring.datasource.master.username")
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @DisconfFileItem(name = "spring.datasource.master.password")
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @DisconfFileItem(name = "spring.datasource.master.driver-class-name")
    public String getDriverClassName() {
        return driverClassName;
    }

    public void setDriverClassName(String driverClassName) {
        this.driverClassName = driverClassName;
    }

    @DisconfFileItem(name = "spring.datasource.slave.jdbc-url")
    public String getSlaveUrl() {
        return slaveUrl;
    }

    public void setSlaveUrl(String slaveUrl) {
        this.slaveUrl = slaveUrl;
    }

    @DisconfFileItem(name = "spring.datasource.slave.username")
    public String getSlaveUsername() {
        return slaveUsername;
    }

    public void setSlaveUsername(String slaveUsername) {
        this.slaveUsername = slaveUsername;
    }

    @DisconfFileItem(name = "spring.datasource.slave.password")
    public String getSlavePassword() {
        return slavePassword;
    }

    public void setSlavePassword(String slavePassword) {
        this.slavePassword = slavePassword;
    }

    @DisconfFileItem(name = "spring.datasource.slave.driver-class-name")
    public String getSlaveDriverClassName() {
        return slaveDriverClassName;
    }

    public void setSlaveDriverClassName(String slaveDriverClassName) {
        this.slaveDriverClassName = slaveDriverClassName;
    }

    @DisconfFileItem(name = "zk.host")
    public String getZkHost() {
        return zkHost;
    }

    public void setZkHost(String zkHost) {
        this.zkHost = zkHost;
    }

    @DisconfFileItem(name = "test.cron")
    public String getCron() {
        return cron;
    }

    public void setCron(String cron) {
        this.cron = cron;
    }
}
